package cn.tedu;

public class dou10 {
    public static void main(String[] args) {
       dog d = new dog();
       d.eat();
       d.sleep();
        System.out.println(d.a);
        d.b = 200;
        d.gan();
    }
}
class  animala{
    public void gan(){
        System.out.println("饭");
    }
}
class animal extends animala{
    int a = 100;
    int b ;
    private int c = 1000;
    public void eat(){
        System.out.println("吃");
    }
    public void sleep(){
        System.out.println("睡");
    }
}
class dog extends animal {

}